package com.njzf.zcenter.common.resp;

import lombok.Data;

/**
 * 统一响应封装
 * @author shengkai
 * @date 2024/9/12
 */
@Data
public class Result<T> {

    /**
     * 返回码，默认200
     */
    private int status = 200;

    /**
     * 返回结果描述
     */
    private String message;

    /**
     * 返回结果集
     */
    private T data;

    public Result(String message, T data) {
        this.message = message;
        this.data = data;
    }

    public Result(int status, String message, T data) {
        this.status = status;
        this.message = message;
        this.data = data;
    }
}
